layui.use('table', function() {
	var table = layui.table;
	
	layer.msg('数据加载中...', {
		icon: 16,
		shade: 0.3,
		success: function() {
			$.ajax({
				type: 'post',
				dataType: 'json',
				url: listSrc,
				success: function(data) {
					table.render({
						elem: '#centet-cen',
						height: $(".center-tab").height(),
						id:'idTest',
						cols: [
							[ //标题栏
								{
									field: 'id',
									title: 'ID',
									width: 60
								}, {
									field: 'mid',
									title: '用户编号',
									width: 100
								}, {
									field: 'title',
									title: '标题',
									minWidth: 300
								}, {
									field: 'create_date',
									title: '完成时间',
									width: 200
								}
							]
						],
						data: data.data,
						limit: 200
					});
					var pageHtml = data.page_html;
					$(".paging").html(pageHtml);
					layer.close(layer.index);
				}
			});
		}
	})
})	